package com.liu.qqRobot.q.job;

import com.liu.qqRobot.q.service.SyncGroupUserService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class SyncGroupUserJob {

    @Resource
    private SyncGroupUserService syncGroupUserService;

    @Scheduled(cron = "0 0/5 * * * ?")
    public void syncGroupUser() {
        log.info("开始同步Q群用户信息");
        syncGroupUserService.syncGroupUser();
        log.info("结束同步Q群用户信息");
    }
}
